package train_array.day1;

import java.util.Scanner;

public class cdoe1 {


    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");

        int sum = 0;
        int min = Integer.MAX_VALUE;
        int max = Integer.MIN_VALUE;

        for(String s:str){
            int num = Integer.parseInt(s);
            sum += num;
            if(num>max){
                max = num;
            }
            if(num<min){
                min = num;
            }
        }

        System.out.println(min+" "+max+" "+sum);

    }
}
